using System;
using Xunit;

namespace NextGreaterElement.Test
{
    public class UnitTest1
    {
        [Fact]
        public void Test1()
        {
            Class1 class1 = new Class1();
            int[] res = class1.NextGreaterElement(new int[] { 4, 1, 2 }, new int[] { 1, 3, 4, 2 });
            Assert.Equal(new int[] { -1, 3, -1 }, res);
        }


        [Fact]
        public void Test2()
        {
            Class1 class1 = new Class1();
            int[] res = class1.NextGreaterElement2(new int[] { 4, 1, 2 }, new int[] { 1, 3, 4, 2 });
            Assert.Equal(new int[] { -1, 3, -1 }, res);
        }
    }
}
